<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>千禧宝贝连锁店管理信息系统</title>

</head>
<body>
<script>
function saveProductUnit(){
	var params=$("#updateUnitForm").serialize();

    $.post("basicDataJSON!updateInventory",params, updateUnitBKProcess,"json");	
}
function updateUnitBKProcess(data){
	var response = data.response;
	var returnCode = response.returnCode;
	if (returnCode != SUCCESS)
		$.messager.alert('错误', response.message, 'error');
	else {
		$.modalDialog.handler.dialog('close');
		$("#dataGrid").datagrid('reload');
	}		
}
</script>
    <s:form id="updateUnitForm" name="updateUnitForm" method="post" action="" theme="simple" cssClass="easyui-form">
	    <table width="90%" border="0" style="position:relative;top:15px;left:20px;">
	       
	       <tr class="InnerTableContent">
	          <td align="center"><span style="color:red">*</span><strong>仓库名字 :</strong></td><td><s:hidden name="formBean.store.id"/>
	          <input type="text"  style="width:220px" class="easyui-textbox"  data-options="prompt:'请输入库房名称'" name="formBean.store.name" id="name" value="<s:property value="formBean.store.name"/>"  />
	         </td>
	       </tr>
	       <tr class="InnerTableContent">
	          <td  align="center"><span style="color:red">*</span><strong>仓库备注 :</strong></td>
	          <td>
	          	<input type="text"  style="width:220px" class="easyui-textbox"  data-options="prompt:'请输入库房名称'" name="formBean.store.comment" id="name" value="<s:property value="formBean.store.comment"/>"  />
	          </td>
	       </tr>
	       <tr class="InnerTableContent">
	       	<td align="center"><span style="color:red">*</span><strong>仓库归属 :</strong></td>
	      <td>						
			<s:select id="type" cssClass="easyui-combobox" name="formBean.store.belongTo" style="width:140px"
						list="#{0:'千禧',1:'禧乐仓'}" listKey="key" listValue="value" />
			</td>	
			</tr>
	       <tr class="InnerTableContent">
	       		<td></td>
	          <td >
	          <a onclick="saveProductUnit();" data-options="iconCls:'icon-ok'"  href="javascript:void(0);" class="easyui-linkbutton">保存</a>
	          </td>
	       </tr>
	    </table>
	    </s:form>
      
</body>
</html>